package com.example.service;

import com.example.pojo.entity.User;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {
    void insert(User user);

    void update(User user);

    void delete(Integer id);

    void batchdelete(List<Integer> ids);

    List<User> selectAll();

    User selectById(Integer id);

    List<User> selectByName(String name);

    List<User> selectMore(String name, String username);

    List<User> selectByLike(String name, String username);


    User login(User user);


    User register(User user);

    void resetPassword(User user);

    PageInfo<User> selectByPage(Integer pageNum, Integer pageSize, String name, String username);
}
